﻿using System;

namespace AngularJS
{
    public class AngularEvent
    {
        /// <summary>
        /// The scope on which the event was $emit-ed or $broadcast-ed.
        /// </summary>
        public Scope TargetScope;

        /// <summary>
        /// The current scope which is handling the event.
        /// </summary>
        public Scope CurrentScope;

        /// <summary>
        /// Name of the event.
        /// </summary>
        public string Name;

        /// <summary>
        /// Calling stopPropagation function will cancel further event propagation (available only for events that were $emit-ed).
        /// </summary>
        public void StopPropagation()
        {
        }

        /// <summary>
        /// Calling preventDefault sets defaultPrevented flag to true.
        /// </summary>
        public void PreventDefault()
        {
        }

        /// <summary>
        /// true if preventDefault was called.
        /// </summary>
        public bool DefaultPrevented;
    }
}
